package com.example.customer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class FanoutListener {

    @RabbitListener(queues = "fanout.message")
    public void receiveFanoutMessage(String message){
        System.out.println("fanout1Message："+message);
    }


    @RabbitListener(queues = "fanout.message22")
    public void receiveFanoutMessage22(String message){
        System.out.println("fanout2Message："+message);
    }

    @RabbitListener(queues = "fanout.message33")
    public void receiveFanoutMessage33(String message){
        System.out.println("fanout3Message："+message);
    }


}
